import request from '~/utils/resquest'

// 获取道路列表
export const getRoadManageList = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/street/list',
    method: 'get',
    params
  })

// 添加道路
export const addRoadManageInfo = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/street/add',
    method: 'post',
    data: params
  })

// 修改道路基础资料
export const updateRoadManageInfo = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/street/update',
    method: 'post',
    data: params
  })

// 删除道路
export const deleteRoadManageInfo = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/street/remove',
    method: 'post',
    params
  })

// 道路导入文件
export const importRoadManageInfo = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/street/import-excel',
    method: 'post',
    data: params
  })

// 关联设施
export const relevenceDevInfo = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/street/relevancy',
    method: 'post',
    data: params
  })

// 详情
export const roadInfo = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/street/view',
    method: 'get',
    params
  })
